<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>后台登录</title>
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="min-h-screen grid place-items-center bg-gray-50">
    <form method="post" class="bg-white p-8 rounded-xl border w-96 space-y-4">
        {{ form.csrf_token }}
        <h1 class="text-lg font-semibold">后台登录</h1>
        <div>
            {{ form.username.label(class_='text-sm') }}
            {{ form.username(class_='mt-1 w-full border rounded p-2 text-sm') }}
        </div>
        <div>
            {{ form.password.label(class_='text-sm') }}
            {{ form.password(class_='mt-1 w-full border rounded p-2 text-sm') }}
        </div>
        {{ form.submit(class_='w-full bg-emerald-600 text-white rounded p-2') }}
    </form>
</body>
</html>